<?php
// $Id: results.tpl.php,v 1.5 2007/10/11 09:51:29 goba Exp $
global $base_url;
   
	//print "<pre>";print_r($results);print"</pre>";
	//print $nid;
?>

<div class="profile-border">
  <div style="border:0px solid red;">
    <div class="profile-right">
      <div class="profile-right-pic">
        <?php  
		if(!empty($results[$nid]->field_mla_photo['und']['0']['filename'] )){
		 $img_tag = '<img src=http://cms.tn.gov.in/sites/default/files/assembly/pictures/'.$results[$nid]->field_mla_photo['und']['0']['filename'].' height="140" width="150" >';
		 } else {
		 $img_tag = '<img src=http://www.tn.gov.in/sites/all/modules/government/images/no-profile-man-medium.jpg height="140">';
		 
		 }
		echo $img_tag;
		//echo $img_path="<img src='".$base_url."/sites/all/themes/customs/citizen/thumb.php?f=0&src=".BASECH_LOCAL."/".$lokdata->filepath."&x=140&y=150'>";
		 ?>
      </div>
      <!--<div  class="profile-mem-name"> <?php //print $results[$nid]->
      title; ?></div>
    -->
    <div  class="profile-mem-name">
      <?php //print $results[$nid]->title; ?>
    </div>
    <div class="clr"></div>
  </div>
  <div class="profile-left">
    <div class="profile-left-head-design">
      <div class="profile-left-head-text"><?php echo t('Name');?></div>
    </div>
    <div class="profile-left-content-text">
      <?php echo t($results[$nid]->title) ?>
    </div>
	
    <?php if($results[$nid]->field_mla_position['und'][0]['value']) { ?>
    <div class="profile-left-head-design">
      <div class="profile-left-head-text"><?php echo t('Position');?></div>
    </div>
    <div class="profile-left-content-text">
      <?php  echo t($results[$nid]->field_mla_position['und'][0]['value']); ?>
    </div>
    <?Php } ?>

	
		   <div class="profile-left-head-design">
          <div class="profile-left-head-text"><?php echo t('Assembly');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_assembly['und']['0']['value'];  ?></div>
		   <div class="profile-left-head-design">
          <div class="profile-left-head-text"><?php echo t('Consitituency Name');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo  consituance_name($results[$nid]->field_mla_cons['und']['0']['value']); ?></div>
		   <div class="profile-left-head-design">
          <div class="profile-left-head-text"><?php echo t('District');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo consticy_District_name($results[$nid]->field_mla_district['und']['0']['value']); ?></div>
     <div class="profile-left-head-design">
          <div class="profile-left-head-text"><?php echo t('Party Name');?></div> 
     </div>
	      <div class="profile-left-content-text"><?php
             if(($results[$nid]->field_mla_party['und']['0']['value'])=='Others')
            {
            echo $results[$nid]->field_mla_party['und']['0']['value'];
            }
            else
            {
            echo paty_name($results[$nid]->field_mla_party['und']['0']['value']);
            } ?>
		</div> 
		
		
		<div class="profile-left-head-design">
          <div class="profile-left-head-text"><?php echo t('Native Place');?></div> 
     </div>
	       <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_place['und']['0']['value']; ?></div>
		   <?php if(!empty($results[$nid]->field_mla_edu['und']['0']['value'])){ ?>
		 <div class="profile-left-head-design">
		 
          <div class="profile-left-head-text"><?php echo t('Education');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_edu['und']['0']['value']; ?></div> <?Php } ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Occupation');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_occu['und']['0']['value']; ?></div>
		   <?php if(!empty($results[$nid]->field_mla_career['und']['0']['value'])){ ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Political Career');?></div> 
     </div>
	 
	  <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_career['und']['0']['value']; ?></div><?php } ?>
		   <?php if(!empty($results[$nid]->field_mla_other['und']['0']['value'])){ ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Other Information');?></div> 
     </div>
	 
	  <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_other['und']['0']['value']; ?></div><?php } ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Chennai Address');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_cadd['und']['0']['value']; ?></div>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Telephone Number (Chennai)');?></div> 
     </div>
	 
	  <div class="profile-left-content-text"><?php if(!empty($results[$nid]->field_mla_code['und']['0']['value'])) { echo "0";} echo $results[$nid]->field_mla_code['und']['0']['value']; ?> <?php echo $results[$nid]->field_mla_tele['und']['0']['value']; ?></div><?php if(!empty($results[$nid]->field_mla_mobile['und']['0']['value'])) { ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Mobile');?></div> 
     </div>
	        <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_mobile['und']['0']['value']; ?> </div><?php } ?>
           <?php if(!empty($mladata->field_mla_madd_value)){ ?>
            <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Mofussil Address');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_madd['und']['0']['value']; ?></div><?php } ?>
		    <?php if(!empty($results[$nid]->field_mla_mcode['und']['0']['value'])) { ?>
		    <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Telephone Number (Mofussil)');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php if(!empty($results[$nid]->field_mla_mcode['und']['0']['value'])) { echo "0";}
	   echo $results[$nid]->field_mla_mcode['und']['0']['value'];
	    ?> <?php echo $results[$nid]->field_mla_mtele['und']['0']['value']; ?></div> <?php } ?>
		
		   <?PHP if(!empty($results[$nid]->field_mla_fax['und']['0']['value'])){?>
		    <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Fax');?></div> 
     </div>
	 
	 <div class="profile-left-content-text"><?php if(!empty($results[$nid]->field_mla_fax['und']['0']['value'])) { echo "0";}
	   echo $results[$nid]->field_mla_fcode['und']['0']['value'];
	    ?> <?php echo $results[$nid]->field_mla_fax['und']['0']['value']; ?></div><?php } ?>
		<?php if(!empty($results[$nid]->field_mla_email['und']['0']['value'])){ ?>
		    <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('E-Mail');?></div> </div>
	       <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_email['und']['0']['value']; ?></div><?php } ?>
		   <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Website URL');?></div> </div>
	       <div class="profile-left-content-text">
		   	<?php $filepath = $results[$nid]->field_mla_url['und']['0']['value'];?>
	<a href='javascript:void(0);' onClick='return tnportal_ext_window("<?php echo $filepath;?>");'><?php echo $filepath;?></a>
		  
		   </div>
		   <?php if(!empty($results[$nid]->field_mla_ainfo['und']['0']['value'])){ ?>
		    <div class="profile-left-head-design"> <div class="profile-left-head-text"><?php echo t('Additional Information');?></div> </div>
	       <div class="profile-left-content-text"><?php echo $results[$nid]->field_mla_ainfo['und']['0']['value']; ?></div><?php } ?>
 </div>
  <div class="clr"></div>
</div>
<div style='text-align:right;padding-right:10px;'><img src="<?php echo $base_url.'/sites/default/files/back.jpg' ; ?>"  onclick="window.history.go(-1);"  style='cursor:pointer;'   alt='Go Back' title='Go Back' /> </div>
</div>